#!/bin/bash

mkdir -p build
rm -rf build/*
cd build

ANDROID_NDK_HOME=/home/disk2/ldh/android/android-ndk-r21b
CMAKE_ANDROID=/home/disk2/ldh/android/cmake-3.20.1-linux-x86_64/bin/cmake

${CMAKE_ANDROID} -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake \
      -DCMAKE_BUILD_TYPE=Debug \
      -DANDROID_ABI=armeabi-v7a \
      -DANDROID_TOOLCHAIN=clang \
      -DANDROID_PLATFORM=android-29 \
	  ..

make
cd -
